package org.example.config;

import org.example.bean.BeanContent;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class ProfileConfig {

    @Bean
    @Profile("dev")
    public BeanContent dev() {
        return new BeanContent("dev");
    }

    @Bean
    @Profile("prod")
    public BeanContent prod() {
        return new BeanContent("prod");
    }

}
